<template>
    <Mapbox :mapOnLoadCB="mapOnLoadCB"></Mapbox>
</template>

<script>
    import {ref} from "vue"
    import Mapbox from "@/components/common/Mapbox.component.vue"
    import MapboxCommonService from "@/service/map/MapboxCommonService"

    export default {
        name: "AddAnimateImage.component",
        components: {Mapbox},
        setup() {

            let mapStore = ref({});
            let mapOnLoadCB = (map) => {
                mapStore.value = map;
                MapboxCommonService.addAnimateImage(map, [
                    [-80.425, 46.437], [-71.516, 46.437], [-71.516, 37.936], [-80.425, 37.936]
                ]);
            };

            return {
                mapOnLoadCB
            }
        }
    }
</script>

<style scoped>

</style>